<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<title>fanmei-manage</title>
		<!-- 引入样式 -->
		<link rel="stylesheet" href="./static/js/element-ui/theme-chalk/element-ui.css">
		<link rel="stylesheet" type="text/css" href="static/css/awesome/css/font-awesome.min.css" />
		<link rel="stylesheet" href="http://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.css" />

		<script src="./static/js/md5.js"></script>
	</head>

	<body>
		<div id="app"></div>
		<!-- built files will be auto injected -->
		<!-- 引入组件库 -->
		<script src="./static/js/vue/vue.min.js"></script>
		<script src="static/js/axios@0.118.0/axios.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./static/js/element-ui/element-ui.js"></script>
		<script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=GnFyOpEtDipk8Ciljbehmihmg0gy8AuB"></script>
		<script type="text/javascript" src="http://api.map.baidu.com/library/DrawingManager/1.4/src/DrawingManager_min.js"></script>
		<script src="./static/js/three.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var env = "develop"
			//公共测试函数

			// 通过字面量方式实现的函数each
			var each = function(object, callback) {
				console.log(object.constructor)
				var type = (function() {
					switch(object.constructor) {
						case Object:
							return 'Object';
							break;
						case Array:
							return 'Array';
							break;
						case NodeList:
							return 'NodeList';
							break;
						default:
							return 'null';
							break;
					}
				})();
				// 为数组或类数组时, 返回: index, value
				if(type === 'Array' || type === 'NodeList') {
					// 由于存在类数组NodeList, 所以不能直接调用every方法
					[].every.call(object, function(v, i) {
						return callback.call(v, i, v) === false ? false : true;
					});
				}
				// 为对象格式时,返回:key, value
				else if(type === 'Object') {
					for(var i in object) {
						if(callback.call(object[i], i, object[i]) === false) {
							break;
						}
					}
				}
			}
		</script>
	</body>

</html>